/*!
    \copyright  Copyright (c) 2023 - 2024 Qualcomm Technologies International, Ltd.
                All Rights Reserved.
                Qualcomm Technologies International, Ltd. Confidential and Proprietary.
    \file
    \defgroup   le_bap  LE BAP
    @{
    \ingroup    profiles
    \brief      Common defines, structure and functions for BAP profile wrapper
*/

#ifndef LE_BAP_PROFILE_H_
#define LE_BAP_PROFILE_H_

#define ISOC_DATA_PATH_ID_RAW_STREAM_ENDPOINTS_ONLY  0x06

#define ISOC_DATA_PATH_ID_FOR_CONFIG_DATA            0x06

#define ISOC_DATA_PATH_ID_ISO_PATH_SHADOWING_PERIPHERAL  0xFA

#define ISOC_DATA_PATH_DIRECTION_HOST_TO_CONTROLLER  0x00
#define ISOC_DATA_PATH_DIRECTION_CONTROLLER_TO_HOST  0x01

/*! Defines for configure data path request vendor specific Types */
#define ISOC_CONFIG_DATA_PATH_VS_LENGTH             7
#define ISOC_CONFIG_CONNECTION_HANDLE_TYPE          0x06
#define ISOC_CONFIG_CONNECTION_HANDLE_TYPE_LENGTH   3

/*! Defines for Relay Information VS types */
#define ISOC_CONFIG_VS_RELAY_INFO_TYPE              0x0c
#define ISOC_CONFIG_VS_RELAY_INFO_TYPE_LENGTH       2
#define ISOC_CONFIG_VS_RELAY_INFO_FLAG_FOR_RELAY    0x01
#define ISOC_CONFIG_VS_RELAY_INFO_FLAG_FOR_HANDOVER 0x02

/*! Defines for FT Information used by aptX R4 VS types */
#define ISOC_CONFIG_VS_FT_INFO_TYPE                 0x0d
#define ISOC_CONFIG_VS_FT_INFO_TYPE_LENGTH          2
#define ISOC_CONFIG_VS_FT_INFO_MAX_FT               0x07

/*! \brief Check whether given audio context is for conversational usecase or not */
#define LeBapProfile_IsAudioContextTypeConversational(audio_context) (audio_context == AUDIO_CONTEXT_TYPE_COVERSATIONAL || \
                                                                      audio_context == AUDIO_CONTEXT_TYPE_RINGTONE)

#endif /* LE_BAP_PROFILE_H_ */
/*! @} */
